package org.grc.app.z_project.z_framework.util;

import java.util.Collection;

import org.apache.commons.collections.CollectionUtils;

/** 
 * 类操作工具类
 * 
 * @author grc
 * @since 1.0-SNAPSHOT
 */
public class CollectionUtil {

    /**
     * 判断集合是否非空
     */
    public static boolean isNotEmpty(Collection<?> collection) {
        return CollectionUtils.isNotEmpty(collection);
    }

    /**
     * 判断集合是否为空
     */
    public static boolean isEmpty(Collection<?> collection) {
        return CollectionUtils.isEmpty(collection);
    }
}
